package com.atguigu.team.domain;

/**
 * 设计师----继承程序员类-----员工类
 */
public class Designer extends Programmer{
    private double bonus;

    public Designer() {
        super();
    }

    public Designer(int id, String name, int age, double salary, Equipment equipment, double bonus) {
        super(id, name, age, salary, equipment);
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    @Override
    public String toString() {
        return getDetails() + "\t设计师\t"+ getStatus() + "\t" +bonus+"\t\t"+ getEquipment().getDescription();
    }

    public String getDetailForTeam(){
        return getMemberId() + "/" + getId() + "\t" +getName() + "\t" + getAge() + "\t" +getSalary() +"\t设计师\t" + getBonus();
    }
}
